import { BasicColumn, FormSchema } from '@/components/Table';

export const tableColumns: BasicColumn[] = [
  { title: '编号', dataIndex: 'id' },
  { title: '帐号', dataIndex: 'authAccountList', slots: { customRender: 'authAccountList' } },
  { title: '注册时间', dataIndex: 'createdTime' },
];

export const tableFormSchema: FormSchema[] = [
  {
    field: 'account',
    label: '帐号',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: '注册时间',
    field: 'createdTime',
    component: 'RangePicker',
    colProps: { span: 6 },
  },
];

export const modalFormSchema: FormSchema[] = [
  { field: 'id', label: 'id', ifShow: false, component: 'Input' },
  {
    field: 'account',
    required: true,
    label: '帐号',
    component: 'Input',
  },
  {
    required: true,
    field: 'password',
    label: '密码',
    component: 'InputPassword',
  },
];
